package com.xuyoupeng.springframework.beans.factory.support;

import com.xuyoupeng.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.BeansException;

import java.lang.reflect.Constructor;

/**
 * @author xuyoupneg
 * @description 接口，负责创建与根bean定义相对应的实例
 * @date 2024/3/16 14:24
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor constructor, Object[] args) throws BeansException;
}
